import 'package:flutter/material.dart';

class ContainerCase extends StatelessWidget {
  const ContainerCase({super.key});

  @override
  Widget build(BuildContext context) {
    return Container(
      // ignore: sort_child_properties_last
      child: const Text("Hello HarmonyOS"),
      width: 200,
      height: 200,
      margin: EdgeInsets.all(30),
      // color: Colors.red,
      padding: const EdgeInsets.all(30),
      decoration: BoxDecoration(
          color: Colors.red,
          borderRadius: BorderRadius.circular(30),
          border: Border.all(color: Colors.green, width: 20),
          //投影
          boxShadow: const [
            BoxShadow(
                color: Colors.black, offset: Offset(10, 10), blurRadius: 20)
          ],
          gradient: const LinearGradient(colors: [
            Colors.pink,
            Colors.white,
          ])),
      //渐变
    );
  }
}
